package com.yfp.auth.form;

import com.yfp.auth.valid.LoginValidGroup;
import io.swagger.v3.oas.annotations.media.Schema;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;

/**
 * 获取验证码对象
 */
@Data
@Tag(name = "验证码", description = "验证码交互载体")
public class CaptchaBody {

    /**
     * 手机号
     */
    @NotBlank(message = "手机号不能为空", groups = {LoginValidGroup.Captcha.class})
    @Schema(description = "手机号")
    private String phone;

    /**
     * 验证码
     */
    @Schema(description = "验证码类型：'1登录'")
    private Integer type;

}
